# coding: utf-8

from common import OthersIcon
from .music import MusicListView


class LeaderboardInterface(MusicListView):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.__initWidgets()
        self.addLeaderboardInfo(OthersIcon.Default.path(), '惊鸿一面', '余杰', '22.12M', 'Songs for Jane', '04:56')
        self.addLeaderboardInfo(OthersIcon.Default.path(), '惊鸿一面', '余杰', '22.12M', 'Songs for Jane', '04:56')
        self.addLeaderboardInfo(OthersIcon.Default.path(), '惊鸿一面', '余杰', '22.12M', 'Songs for Jane', '04:56')
        self.addLeaderboardInfo(OthersIcon.Default.path(), '惊鸿一面', '余杰', '22.12M', 'Songs for Jane', '04:56')
        self.addLeaderboardInfo(OthersIcon.Default.path(), '惊鸿一面', '余杰', '22.12M', 'Songs for Jane', '04:56')
        self.addLeaderboardInfo(OthersIcon.Default.path(), '惊鸿一面', '余杰', '22.12M', 'Songs for Jane', '04:56')
        self.addLeaderboardInfo(OthersIcon.Default.path(), '惊鸿一面', '余杰', '22.12M', 'Songs for Jane', '04:56')
        self.addLeaderboardInfo(OthersIcon.Default.path(), '惊鸿一面', '余杰', '22.12M', 'Songs for Jane', '04:56')

    def __initWidgets(self):
        self.setObjectName("LeaderboardInterface")
        self.setTitle("排行榜")
        self.setHorizontalHeaderLabels(['标题', '播放量', '专辑', '时长'])
